<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>走马灯</title>
    <style>
        .box{
            width: 600px;
            height: 300px;
            border: 5px solid #000;
            margin: 100px auto;
            overflow: hidden;
        }
        .box ul{
            display: flex;
            animation: move 6s infinite linear;
        }
        @keyframes move{
            0%{
                transform: translate(0);
            }
            100%{
                transform: translate(-1400px);
            }
        }

        .box:hover ul{
            animation-play-state: paused;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li><img src="../img/11.jpg"></li>
            <li><img src="../img/22.jpg"></li>
            <li><img src="../img/33.jpg"></li>
            <li><img src="../img/44.jpg"></li>
            <li><img src="../img/55.jpg"></li>
            <li><img src="../img/66.jpg"></li>
            <li><img src="../img/77.jpg"></li>
        </ul>
    </div>
    
</body>
</html>